import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/components/Main'
import Brand from '@/components/brand/Brand'
import Select from '@/components/select/Select'
import Detail from '@/components/detail/Detail'
import Descript from '@/components/detail/Descript'
import Config from '@/components/detail/Config'
import Picture from '@/components/detail/Picture'
import Business from '@/components/detail/Business'
import AskPrice from '@/components/ask/AskPrice'
import Series from '@/components/brand/Series'
import TruckList from '@/components/select/TruckList'

Vue.use(Router)

export default new Router({
  routes: [
  	{path:'/',redirect:'/main/brand'},
    {path: '/',name: 'Main',component: Main,children:[
    	{path: 'main/brand', component: Brand},
    	{path: 'main/select', component: Select},
    ]},
		{path: '/detail', redirect: '/detail/descript', component: Detail, children:[
			{path:'descript',component:Descript},
			{path:'config',component:Config},
			{path:'picture',component:Picture},
			{path:'business',component:Business},
		]},
		{path: '/ask/askprice',component:AskPrice},
		{path: '/series/list', component: Series},
		{path: '/select/truckList', component: TruckList}
  ]
})
